<form method="post" ng-submit="applogin()" action="<?php echo $this->basePath() ?>/app/login" ng-controller="loginController">
    <div id="login_form">
        <div class="group">

            <input id="app_login_username" tabindex="0" spellcheck="false" type="text" ng-model="app_login_username"
                   placeholder="<?php echo $this->translate('Email or nickname'); ?>" autocomplete="off"
                   name="app_login_username"/>

            <div id="app_remember_me" ng-model="app_login_remember">
                <input id="app_login_remember" name="app_login_remember"
                       type="checkbox"><?php echo $this->translate('Remember me'); ?>
            </div>

        </div>

        <div class="group">
            <input id="app_login_password" ng-model="app_login_password" tabindex="2" spellcheck="false" type="password"
                   autocomplete="off" placeholder="<?php echo $this->translate('Password'); ?>"/>

            <input type="hidden" name="app_login_hash" value="{{app_login_hash}}"/>

            <div id="app_forget_password">
                <a id="app_login_forgot"
                   href="<?php echo $this->basePath() ?>/app/forgot"><?php echo $this->translate('Forgot your password ?'); ?></a>
            </div>
        </div>

        <div class="group">
            <button type="submit">
                <?php echo $this->translate('Login') ?>
            </button>
        </div>
    </div>
</form>